package com.sx.service.utils.sender;

import java.util.HashMap;
import java.util.Map;

/**
 * @author AdinZ
 * @date 2020/11/11 18:07
 */
public class SenderFactory {
    private Map<SenderType,ISenderService> map=new HashMap<>();

    public void registered(ISenderService service){
        this.map.put(service.getType(),service);
    }

    public ISenderService getService(SenderType type){
        return this.map.get(type);
    }

}
